package com.zuilapsa.jmc.actions;

import com.zuilapsa.jmc.*;
import com.zuilapsa.jmc.userInterfaces.UserInterfaceSession;

public class ActionSave extends ActionNull {

	public void execute(UserInterfaceSession interfaceSession, String[] args)
			throws JmcException {
		try {
			Configuration.getInstance().saveManagedConfig();
			interfaceSession.printMessageInfo("Saved");
		} catch (JmcException e) {
			interfaceSession.printMessageError("Unable to save the file.");
		}
	}

	public String getHelpString() {
		return "Saves meta description of system configuration";
	}

}
